package core;


/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Wijnand
 */
public class ValueTransmitterNode extends StdNode implements TransmitterNode {
	InPort  in;
	OutPort out;
	
	public ValueTransmitterNode(Class valueClass)
	{
		this.in = new InPort(valueClass);
		this.out = new OutPort(valueClass)
		{
			public Object getValueInternal() {
				return in.getValue();
			}
		};
		
		autoPutPorts();
	}

	public InPort getInPort() {
		return in;
	}

	public OutPort getOutPort() {
		return out;
	}
	
	
}
